package com.llkj.common.mvp;

/**
 * author: zhu.px
 * e-mail: 1271901673@qq.com
 * time  : 2018/5/8
 * desc  :
 */
public abstract class BaseListPresenter<V extends IListView, M extends IModel> extends BasePresenter<V, M> {

    protected int pageIndex = 1;

    public BaseListPresenter(V mView, M mModel) {
        super(mView, mModel);
    }

    public int getPageIndex() {
        return pageIndex;
    }

    /**
     * 是否为下拉刷新数据
     *
     * @param isRefresh true：下拉刷新 false：非下拉刷新
     */
    public abstract void loadFirstData(boolean isRefresh);

    /**
     * 加载更多数据
     */
    public abstract void loadMoreData();
}
